<template>
	<view class="main-all">
		<view class="main-head" @click="download(tem.id)" v-for="(tem,index) in tems">
			<view class="head-first" @click="download(tem.id)">{{tem.title}}</view>
			<view class="head-second" >
				<image src="@/static/img/right2.png" style="width: 30upx;height: 30upx;"></image>
			</view>
		</view>
		
	</view>
</template>

<script>
	import { router, toast, localStorage } from '@/common/util.js';
	import { secondAboutUs, secondAboutUsDetail} from '@/service/getData.js';
	export default{
		components: {
			
		},
		data() {
			return {
				searchValue: '', // 搜索的值
				tems:[],
			}
		},
		onLoad(){
			toast.loading();
			secondAboutUs({data:{"type":"about"}}).then(res =>{
				toast.hideLoading();
				let result = eval('('+res.data+')');
				console.log(res.data);
				let resulta = result[0].meslist;
				console.log(resulta);
				this.tems = resulta;
			});
		},
		methods: {
			download(id) {
				console.log('开始下载111111111111111');
				console.log(id);
				router.navigateTo('/pages/company/aboutus-detail/aboutus-detail?id='+id);
			}
		}
		
	}
</script>

<style lang="scss">
	.main-all{
		margin: 0;
		padding: 0;
		width: 100%;
		background-color: #ffffff;
		.main-head{
			display: flex;
			flex-direction: row;
			padding: 10upx 10upx 10upx 20upx;
			font-size: 30upx;
			color: #414141;
			border-bottom: 1upx solid #d3d3d3;
			.head-first{
				padding: 20upx 0 20upx 20upx;
			}
			.head-second{
				padding: 20upx 0;
				position: absolute;
				right: 50upx;
			}
		}
	}
</style>
